package com.obas.business.common.vo;

import java.util.HashMap;
import java.util.Map;

import org.apache.mina.core.session.IoSession;

public class TestContext {
   public static String DEBUG = "debug";
   public static String RUN = "run";

   public String pageId = null;
   public int ideState = 0;
   public IoSession session = null;
   public long scriptId;
   public long parameterId;
   public String autURL;
   public String script;
   public long testPlanItemId;
   public long testTaskId;

   public Thread player;
   public boolean playSuccess = false;
   public boolean playError = false;
   public String msg;
   public String detail;
   public RunnableStep runningStep = null;
   public String playType = DEBUG;

   private Map<String , IoSession> appSessionMap = new HashMap<String, IoSession>();

   public IoSession getAppSession(String appId) {
       return appSessionMap.get(appId);
   }

   public void setAppSession(String appId, IoSession session) {
       appSessionMap.put(appId, session);
   }
}
